<template>
  <div class="outer">
    <div class="top">
      <span>好评商品 </span>
      <button><router-link to="/comments">更多&nbsp;></router-link></button>
    </div>
    <el-carousel
      :interval="4000"
      type="card"
      height="600px"
      trigger="click"
      loop
    >
      <el-carousel-item>
        <img src="/myswipe/swipe_1.jpg" alt="" />
      </el-carousel-item>
      <el-carousel-item>
        <img src="/myswipe/swipe_2.jpg" alt="" />
      </el-carousel-item>
      <el-carousel-item>
        <img src="/myswipe/swipe_3.jpg" alt="" />
      </el-carousel-item>
      <el-carousel-item>
        <img src="/myswipe/swipe_4.jpg" alt="" />
      </el-carousel-item>
      <el-carousel-item>
        <img src="/myswipe/swipe_5.jpg" alt="" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script>
export default {};
</script>


<style lang="scss" scoped>
.top {
  padding: 20px;
  span {
    font-size: 20px;
    font-weight: bold;
  }
  button {
    border: none;
    padding: 15px 20px;
    font-size: 20px;
    border: 1px gray;
    border-radius: 100px;
    background-color: #ebebeb;
    margin-left: 975px;
    &:hover {
      background-color: #ff6e6e;
      a {
        color: white;
      }
    }
  }
}

// font-size: 20px;
//   padding: 2px 20px;
//   display: block;
//   text-align: center;
//   line-height: 50px;
//   background-color: #ebebeb;
//   border-radius: 30px;
//   margin: 20px 0;
.outer {
  width: 1200px;
  margin: 80px auto;
}
.el-carousel__item img {
  height: 90%;
  /* width: 100%; */
}
</style>
<style>
.el-carousel__indicators--outside button{
   background-color: #ff6e6e !important; 
}
</style>